﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DefectSummary.defectinterface;
using DefectSummary.bus.defect;

namespace DefectSummary.bus.inspector
{
    /// <summary>
    /// Convert defect input data into list of specific defects
    /// </summary>
    class Inspector : IInspector
    {
        /// <summary>
        /// Parse defect input data into list defects
        /// </summary>
        /// <param name="input">Data input</param>
        /// <returns>Defects list</returns>
        public IDefectList Inspect(IDefectInput input)
        {
            DefectList defects = new DefectList();
            // Parse defect input to defects

            // Example code:
            // NotabugDefect notabug = new NotabugDefect();
            // defects.Add(notabug);

            return (IDefectList)defects;
        }
    }
}
